<template>
  <div>
    <div style="overflow: hidden">
      <span
        class="unline"
        style="float: left; font-size: 20px; line-height: 40px"
        >成员风采</span
      >

      <a class="totalquanbu" href="/custom/1?id=3&page=1&pagsize=10">全部</a>
    </div>

    <div class="container" style="margin-top: 10px">
      <ul class="list2 d-flex slick-track">
        <div style="display: flex; flex-direction: row-reverse">
          <peoplecard2
            v-for="(item, index) in detail"
            :detail="item"
            :key="index"
          ></peoplecard2>
        </div>
      </ul>
    </div>
  </div>
</template>

<script>
export default {
  props: ['detail'],
}
</script>

<style scoped>
.slick-track {
  display: flex;
  column-gap: 10px;
  text-align: center;
}
.list2 {
  width: 100%;

  overflow-x: scroll;
}
li {
  list-style: none;
}

.unline::after {
  content: '';
  display: block;
  width: 80%;
  height: 2px;
  background-color: #047c3a;
}
.totalquanbu {
  float: right;
  padding: 0 10px;
  color: #fff;
  background-color: #047c3a;
  line-height: 40px;
}
</style>
